
<div id="x-see-user-list-view" class="bui-scroll">
    <div class="bui-scroll-head"></div>
    <div class="bui-scroll-main">
        <ul class="bui-list  message-list">
        </ul>
    </div>
    <div class="bui-scroll-foot"></div>
</div>

<script type="text/tmp" id='x-render-see-user-inner'>
{{for result}}
	<li>
       <div class="bui-btn bui-box">
           <div class="ring ring-group">
               <i class="icon"></i>
           </div>
           <div class="span1">
               <h1 class="item-title">
                   		{{: #data.name}}
               </h1>
               <p class="item-text">{{: #data.tel}}</p>
           </div>
       </div>
    </li>
{{/for}}

</script>

<script>
	var uilist = bui.list({ 
		id:'#x-see-user-list-view',
		url:'/user/list',
		data:{},
		page:1,
		pageSize:5,
	 	template: template,
        callback: function(e) {
        	 
        }
	});
	
	
	// 生成模板
    function template (data) {
		console.log(data);
        var html = "";
        var  params = {result : data};
        var html = $("#x-render-see-user-inner").render(params);
       return html;
    }
	
</script>